ContentIterator.cpp: do not use 'else' after 'return'
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: mccr8, Assigned: rafbiels)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file, 5 obsolete files)
+++ This bug was initially created as a clone of Bug #1669833 +++
Filling as a good first bug to learn workflows.
do not use 'else' after 'return':
https://searchfox.org/mozilla-central/source/dom/base/ContentIterator.cpp#267-269
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Comment 1•5 years ago
|
||
Working on it .
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Submitted the patch , Please review .
Comment 4•5 years ago
|
||
I have a build error after removing the else statement as a variable lastNode used in else statement is declared in if (<variable declaration> ; ) . So i have to resubmit my patch . How to do that with hg commit --amend ? A nano editor is opened . Please help ?
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
I already have an accepted patch since last week, it just wasn't landed yet and there was a little mix-up with bug reports, which is why this was opened as a clone of Bug 1669833
Comment 7•5 years ago
|
||
(In reply to Rafal Bielski from comment #6)
I already have an accepted patch since last week, it just wasn't landed yet and there was a little mix-up with bug reports, which is why this was opened as a clone of Bug 1669833
okay Great !!
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 8•5 years ago
|
||
Is your patch ready to land? I can land it for you.
Assignee | ||
Comment 9•5 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #8)
Is your patch ready to land? I can land it for you.
Yes, please, I believe it is ready to land.
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
(In reply to Rafal Bielski from comment #9)
(In reply to Andrew McCreight [:mccr8] from comment #8)
Is your patch ready to land? I can land it for you.
Yes, please, I believe it is ready to land.
Correction - let's wait until we agree the course of action with Mirko.
Comment 11•4 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 12•4 years ago
|
||
Hey, what's the status on this bug?
I would like to work on this if possible
Assignee | ||
Comment 13•4 years ago
|
||
There was a patch ready (https://phabricator.services.mozilla.com/D94243) but it was stopped by Bug 1658273 where the conclusion was that this is in fact not a bug and should not be reported as one. It was agreed the corresponding clang-tidy setting will be changed after migration to clang 11.
Comment 14•4 years ago
|
||
is this issue still open to work on? because I see an accepted patch already.
Comment 15•4 years ago
|
||
(In reply to Sneha k from comment #14)
is this issue still open to work on? because I see an accepted patch already.
The patches attached to this ticket haven't landed. One of them was accepted, which is different.
Comment 16•4 years ago
|
||
Hi, can I work on this bug?
Comment 17•4 years ago
|
||
Hey there, I am new to open source and I am willing to contribute to Mozilla. I think I can fix this bug. Once the build process is complete, how do I write my first patch ? And where to go next ?
Please help me out on this .
Comment 18•4 years ago
|
||
I have removed the bug . So can I submit the patch ?
Comment 19•4 years ago
|
||
See comment #0
the process is documented here: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Comment 20•4 years ago
|
||
Updated•4 years ago
|
Comment 21•4 years ago
|
||
Depends on D115968
Comment 22•4 years ago
|
||
Depends on D115971
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 23•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Comment 24•4 years ago
|
||
Rafal, it looks like the linked Clang tidy bug has been fixed, so your patch could be updated to remove the lastNode changes.
Rafal already wrote a patch, so there's no need for somebody else to fix this.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 25•4 years ago
|
||
Sorry everybody for the confusing state in this bug. As discussed in bug 1658273 it was decided that the lastNode part of this change is not wanted. Rafal's patch has fixes for the rest of the "else after return" issues in the function (while the rest of the patches in this bug do not), so hopefully they'll be able to update the patch and it can be landed.
Updated•4 years ago
|
Assignee | ||
Comment 26•4 years ago
|
||
Patch updated as suggested: https://phabricator.services.mozilla.com/D94243
Assignee | ||
Comment 27•4 years ago
|
||
Andrew, may I ask you to assist with landing the patch?
Reporter | ||
Comment 28•4 years ago
|
||
I've started the landing process. Thanks for your patience.
Comment 29•4 years ago
|
||
Comment 30•4 years ago
|
||
bugherder |
Description
•